group by and having in sql

welcome to shbcf.ru